import request from '@/utils/request'
const api_name = '/admin/core/userInfo'

export default{
    //获取带分页的用户信息
    getPageList(pageNum,pageSize,obj){
        return request({
            url: `${api_name}/pageUserInfo/${pageNum}/${pageSize}`,
            method: 'GET',
            params: obj
        })
    },
    //修改用户的状态
    changeStatus(userInfo){
        return request({
            url: `${api_name}`,
            method: 'PUT',
            data: userInfo
        })
    },
    //查询用户的登录日志 /top10/{userId}
    getLogRecord(userId){
        return request({
            url: `/admin/core/userLoginRecord/top10/${userId}`,
            method: 'GET'
        })
    }
}